###
 # @Company: TWL
 # @Author: xue jian
 # @Email: xuejian@kanzhun.com
 # @Date: 2020-04-26 10:11:06
 ###
### 
ips=("172.21.34.69" "172.21.34.93" "172.21.32.153" "172.21.34.188" "172.21.34.130" "172.21.32.76") #recall01~06
# ips=("172.21.39.10" "172.21.39.12") #offline 08 09
for ip in ${ips[*]}
do
    echo $ip
    ssh -p 13122 $ip 'rm -rf /data/logs/flash/write_kafka.py;
    exit'
    scp -P 13122 write_kafka.py $ip:/data/logs/flash
done